export interface GetUserListApiParams {
  page: number;
  limit: number;
  username: string;
}

export interface AddUserApiParams {
  id?: string;
  username: string;
  nickName: string;
  password: string;
}

export interface GetUserItem {
  id: string;
  gmtCreate: string; // 创建时间
  gmtModified: string; // 修改时间
  username: string; // 用户名称
  nickName: string; // 用户昵称
  roleName: string; // 角色名称
}

export type GetUserList = GetUserItem[];

export interface GetUserListApiResponse {
  total: number;
  items: GetUserList;
}

export interface RolesItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  roleName: string;
}

export type RolesList = RolesItem[];

export interface GetRoleListsApiResponse {
  assignRoles: RolesList;
  allRolesList: RolesList;
}
